package com.fashiontextile.user.mapper;

import com.fashiontextile.user.entity.Image;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author brooke_zb
 */
@Mapper
public interface ImageMapper {
    Image selectImageById(Long iid);

    List<Image> selectImage(@Param("diid") Long imageTypeId, @Param("pointTo") Long pointTo);

    Integer insertImage(Image image);

    Integer insertImages(@Param("images") List<Image> images);

    Integer deleteImage(Long iid);

    Integer deleteImageByPointTo(@Param("diid") Long imageTypeId, @Param("pointTo") Long pointTo);
}
